// components/navBar/navBar.js
Component({
  data: {
    statusHeight: 22
  },
  options: {
    multipleSlots: true 
  },
  lifetimes: {
    attached() {
      // 获取设备状态栏高度
      const app = getApp()
      this.setData({statusHeight: app.globalData.statusBarHeight})
    }
  },
  methods: {
    backClick() {
      wx.navigateBack()
    }
  }
})